﻿
#region Using Statements

    using System;
    using System.Collections.ObjectModel;
    using System.Collections.Generic;
    using System.Linq;    
    using System.Text;

    using Microsoft.Xna.Framework;
    using Microsoft.Xna.Framework.Audio;
    using Microsoft.Xna.Framework.Content;   
    using Microsoft.Xna.Framework.GamerServices;
    using Microsoft.Xna.Framework.Graphics;
    using Microsoft.Xna.Framework.Input;
    using Microsoft.Xna.Framework.Media;
    using Microsoft.Xna.Framework.Net;
    using Microsoft.Xna.Framework.Storage;    
#endregion

namespace HumanElement.Xna.Construct
{
    /// <summary>
    /// 
    /// </summary>
    /// <typeparam name="TEntity">The type of the entity.</typeparam>
    public interface IEntityManager<TEntity> : IEntityManager
        where TEntity : IEntity
    {
        /// <summary>
        /// Gets or sets the entities.
        /// </summary>
        /// <value>The entities.</value>
        IEnumerable<TEntity> Entities { get; set; }

        /// <summary>
        /// Gets or sets the active entity.
        /// </summary>
        /// <value>The active entity.</value>
        TEntity ActiveEntity
        {
            get;
            set;
        }
    }

    /// <summary>
    /// 
    /// </summary>
    public interface IEntityManager : IEntity, IServiceProvider
    {
        /// <summary>
        /// Gets the game host.
        /// </summary>
        /// <value>The game host.</value>
        IGameHost GameHost { get; }

        /// <summary>
        /// Gets or sets the update frequency.
        /// </summary>
        /// <value>The update frequency.</value>
        float UpdateFrequency { get; set; }
    }
}
